import { request } from "../request";

export const breezemoonsApi = {
  // 获取清风明月列表
  getBreezemoons: (p = 1, size = 20) => {
    return request("/api/breezemoons", "GET", { p, size });
  },

  // 发布清风明月
  publishBreezemoon: (breezemoonContent) => {
    return request("/breezemoon", "POST", { breezemoonContent });
  },

  // 获取指定用户的清风明月列表
  getUserBreezemoons: (username, p = 1, size = 20) => {
    return request(`/api/user/${username}/breezemoons`, "GET", { p, size });
  },
};
